import request from '@/router/axios';
// 中转司机查询
export const listDriverUsers = (query) => {
  return request({
    url: '/api/xmbz-warehouse/driverInfo/listDriverUsers',
    method: 'get',
    params: query
  })
}

// 中转司机绑定
export const bindDriverWarehouse = (data) => {
  return request({
    url: '/api/xmbz-warehouse/driverWarehouse/bindDriverWarehouse',
    method: 'post',
    data
  })
}

// 中转司机绑定列表查询
export const driverWarehouseList = (query) => {
  return request({
    url: '/api/xmbz-warehouse/driverWarehouse/driverWarehouseList',
    method: 'get',
    params: query
  })
}

// 中转记录查询
export const listTransferNotes = (query) => {
  return request({
    url: '/api/xmbz-warehouse/transfer/listTransferNotes',
    method: 'get',
    params: query
  })
}

// 中转超时查询
export const listOvertimeOrders = (query) => {
  return request({
    url: '/api/xmbz-warehouse/transfer/listOvertimeOrders',
    method: 'get',
    params: query
  })
}

// 中转超时查询
export const disposeOvertimeOrder = (data) => {
  return request({
    url: '/api/xmbz-warehouse/transfer/disposeOvertimeOrder',
    method: 'post',
    data
  })
}

// 中转异常列表查询
export const listUnusuals = (query) => {
  return request({
    url: '/api/xmbz-warehouse/unusual/listUnusuals',
    method: 'get',
    params: query
  })
}

// 异常审核处理
export const disposeUnusual = (data) => {
  return request({
    url: '/api/xmbz-warehouse/unusual/disposeUnusual',
    method: 'post',
    data
  })
}

// 中转日志列表查询
export const listTransferLogs = (query) => {
  return request({
    url: '/api/xmbz-warehouse/transferLog/listTransferLogs',
    method: 'get',
    params: query
  })
}

// 中转记录导出
export const downLoadTransferNotes = (query) => {
  return request({
    url: '/api/xmbz-warehouse/transfer/downLoadTransferNotes',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
